package com.atguigu.gmall.product.service.impl;

import com.atguigu.gmall.model.product.BaseAttrInfo;
import com.atguigu.gmall.product.mapper.BaseAttrInfoMapper;
import com.atguigu.gmall.product.service.BaseAttrInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;


@Service
public class BaseAttrInfoServiceImpl
        extends ServiceImpl<BaseAttrInfoMapper, BaseAttrInfo>
            implements BaseAttrInfoService {

      @Override
    public List<BaseAttrInfo> getAttrInfo(Long category1Id) {

        List<BaseCategory1> list = this.list(new QueryWrapper<BaseCategory1>()
                .eq("category_id", category1Id)
                .eq("category_level", 1));
        return list;
    }
}
